import service from '../request'
import type { UserWechatAccounts } from '@/api/types'

// 新增公众号与用户关联
export function addWechatUser(data: UserWechatAccounts) {
  return service({
    url: '/system/UserWechatAccounts',
    method: 'post',
    data: data,
  })
}

// 更新用户公众号信息关联
export function updateUserWechatAccounts(data: UserWechatAccounts) {
  return service({
    url: '/system/UserWechatAccounts',
    method: 'put',
    data: data,
  })
}

// 获取某个用户的筛查人列表
// export function getCheckers(openId: string) {
//   return service({
//     url: '/system/checkperson/' + openId,
//     method: 'get',
//   })
// }
export function getCheckers() {
  return service({
    url: '/system/checkperson/system/checkperson/openId',
    method: 'get',
  })
}
